<html>
<head><meta charset="utf-8"><title>ICE when compiling · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html">ICE when compiling</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="207786219"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786219" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786219">(Aug 23 2020 at 18:52)</a>:</h4>
<p>Running <code>./x.py doc --stage 1</code> causes an ICE:</p>
<div class="codehilite"><pre><span></span><code>thread &#39;rustc&#39; panicked at &#39;index out of bounds: the len is 0 but the index is 0&#39;, ~/rust/src/librustc_serialize/leb128.rs:32:28
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&amp;template=ice.md

note: rustc 1.47.0-dev running on x86_64-apple-darwin

note: compiler flags: -Z macro-backtrace -Z osx-rpath-install-name -Z unstable-options -Z binary-dep-depinfo -Z force-unstable-if-unmarked -C opt-level=3 -C embed-bitcode=no -C codegen-units=4 -C debuginfo=0 -C link-args=-Wl,-rpath,@loader_path/../lib -C prefer-dynamic -C llvm-args=-import-instr-limit=10 --crate-type lib

note: some of the compiler flags provided by cargo are hidden

error: could not compile `chalk-engine`.

To learn more, run the command again with --verbose.
</code></pre></div>


<p>I tried running plain <code>./x.py build --stage 1</code>, as per <a href="https://rustc-dev-guide.rust-lang.org/building/suggested.html">https://rustc-dev-guide.rust-lang.org/building/suggested.html</a>:</p>
<blockquote>
<p>The TL;DR is that you might get weird behavior from a compile when using --keep-stage 1 -- for example, strange ICEs or other panics. In that case, you should simply remove the --keep-stage 1 from the command and rebuild. That ought to fix the problem.</p>
</blockquote>
<p>But it doesn't recompile anything and I get the same error. I don't want to run <code>./x.py clean</code> if I can avoid it because I suspect it may remove the LLVM build which takes a long time to build. What should I do?</p>
<p>Cc <span class="user-mention" data-user-id="232545">@Joshua Nelson</span></p>



<a name="207786277"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786277" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786277">(Aug 23 2020 at 18:54)</a>:</h4>
<p>wait, this happens while <em>compiling</em> and not documenting?</p>



<a name="207786279"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786279" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786279">(Aug 23 2020 at 18:54)</a>:</h4>
<p><code>x.py clean</code> doesn't remove llvm btw</p>



<a name="207786285"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786285" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786285">(Aug 23 2020 at 18:54)</a>:</h4>
<p>what's the exact command you're running?</p>



<a name="207786313"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786313" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786313">(Aug 23 2020 at 18:55)</a>:</h4>
<p>Sorry, I meant while documenting :)</p>



<a name="207786353"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786353" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786353">(Aug 23 2020 at 18:56)</a>:</h4>
<p>if you can show the output from x.py and also the backtrace that would be helpful</p>



<a name="207786355"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786355" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786355">(Aug 23 2020 at 18:56)</a>:</h4>
<p>(the last 20 or so lines from x.py is fine, but I'd like the whole backtrace)</p>



<a name="207786363"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786363" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786363">(Aug 23 2020 at 18:56)</a>:</h4>
<p>I just ran <code>./x.py doc --stage 1</code> which built the compiler (including LLVM), but once it finished building it ICE'd.</p>



<a name="207786457"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786457" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786457">(Aug 23 2020 at 18:59)</a>:</h4>
<p><code>x.py</code> output:</p>
<div class="codehilite"><pre><span></span><code>Updating only changed submodules
Submodules updated in 0.05 seconds
    Finished dev [unoptimized + debuginfo] target(s) in 0.15s
Generating unstable book md files (x86_64-apple-darwin)
Building stage0 tool unstable-book-gen (x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.14s
Building stage0 tool rustbook (x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.19s
Rustbook (x86_64-apple-darwin) - unstable-book
Building stage0 std artifacts (x86_64-apple-darwin -&gt; x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.15s
Copying stage0 std from stage0 (x86_64-apple-darwin -&gt; x86_64-apple-darwin / x86_64-apple-darwin)
Building stage0 compiler artifacts (x86_64-apple-darwin -&gt; x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.23s
Copying stage0 rustc from stage0 (x86_64-apple-darwin -&gt; x86_64-apple-darwin / x86_64-apple-darwin)
Assembling stage1 compiler (x86_64-apple-darwin)
Documenting standalone (x86_64-apple-darwin)
Building rustdoc for stage1 (x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.16s
Documenting book redirect pages (x86_64-apple-darwin)
Documenting stage1 std (x86_64-apple-darwin)
Building stage1 std artifacts (x86_64-apple-darwin -&gt; x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.14s
Copying stage1 std from stage1 (x86_64-apple-darwin -&gt; x86_64-apple-darwin / x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.28s
    Finished release [optimized] target(s) in 0.30s
    Finished release [optimized] target(s) in 0.29s
    Finished release [optimized] target(s) in 0.30s
    Finished release [optimized] target(s) in 0.29s
Documenting stage1 compiler (x86_64-apple-darwin)
    skipping - compiler/librustdoc docs disabled
Documenting stage1 rustdoc (x86_64-apple-darwin)
    skipping - compiler/librustdoc docs disabled
Documenting error index (x86_64-apple-darwin)
Building stage1 compiler artifacts (x86_64-apple-darwin -&gt; x86_64-apple-darwin)
   Compiling chalk-engine v0.14.0
   Compiling rustc_data_structures v0.0.0 (/Users/me/rust/src/librustc_data_structures)
thread &#39;rustc&#39; panicked at &#39;index out of bounds: the len is 0 but the index is 0&#39;, /Users/me/rust/src/librustc_serialize/leb128.rs:32:28
</code></pre></div>



<a name="207786525"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786525" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786525">(Aug 23 2020 at 19:00)</a>:</h4>
<p>Backtrace 1:</p>
<div class="codehilite"><pre><span></span><code>thread &#39;rustc&#39; panicked at &#39;index out of bounds: the len is 0 but the index is 0&#39;, /Users/me/rust/src/librustc_serialize/leb128.rs:32:28
stack backtrace:
   0:        0x10fb6823b - &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt::h5d9fce4605f1220a
   1:        0x10fbfe1ad - core::fmt::write::h1614c288cde380c5
   2:        0x10fb65857 - std::io::Write::write_fmt::hba663827d5a82a0e
   3:        0x10fb680b5 - std::sys_common::backtrace::print::ha90a372fac35c0e6
   4:        0x10fb77e0d - std::panicking::default_hook::{{closure}}::hf04912344987f09f
   5:        0x10fb77c39 - std::panicking::default_hook::h62aeca00ea500a69
thread &#39;rustc&#39; panicked at &#39;index out of bounds: the len is 0 but the index is 0&#39;, /Users/me/rust/src/librustc_serialize/leb128.rs:32:28
stack backtrace:
   0:        0x109d3423b - &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt::h5d9fce4605f1220a
   1:        0x109dca1ad - core::fmt::write::h1614c288cde380c5
   2:        0x109d31857 - std::io::Write::write_fmt::hba663827d5a82a0e
   3:        0x109d340b5 - std::sys_common::backtrace::print::ha90a372fac35c0e6
   4:        0x109d43e0d - std::panicking::default_hook::{{closure}}::hf04912344987f09f
   5:        0x109d43c39 - std::panicking::default_hook::h62aeca00ea500a69
   6:        0x115a4f1d8 - rustc_driver::report_ice::h88a83a06b2619061
   7:        0x10fb7823f - std::panicking::rust_panic_with_hook::he86b9c4b0afa00f3
   8:        0x10fb9396b - std::panicking::begin_panic_handler::{{closure}}::h29a4cbc939d3fbd6
   9:        0x10fb928a8 - std::sys_common::backtrace::__rust_end_short_backtrace::h0873e5b8d114902b
  10:        0x10fb77e73 - _rust_begin_unwind
  11:        0x10fc0ca3f - core::panicking::panic_fmt::h6b07cf186aa0be5e
  12:        0x10fc0ca06 - core::panicking::panic_bounds_check::he4e6b532cf9a6d7d
  13:        0x11b41c445 - rustc_session::config::_DERIVE_rustc_serialize_Decodable_D_FOR_SymbolManglingVersion::&lt;impl rustc_serialize::serialize::Decodable&lt;__D&gt; for rustc_session::config::SymbolManglingVersion&gt;::decode::h370fa8bfe9d9a1f4
  14:        0x11b3fec30 - rustc_metadata::rmeta::_DERIVE_rustc_serialize_Decodable_DecodeContext_a_tcx_FOR_CrateRoot::&lt;impl rustc_serialize::serialize::Decodable&lt;rustc_metadata::rmeta::decoder::DecodeContext&gt; for rustc_metadata::rmeta::CrateRoot&gt;::decode::h7500125777da5e2d
  15:        0x11b5431ad - rustc_metadata::rmeta::decoder::MetadataBlob::get_root::h9468e91298d49d80
  16:        0x11b4aa9eb - rustc_metadata::locator::CrateLocator::extract_one::h63f2539ec27a38c0
  17:        0x11b4a9d90 - rustc_metadata::locator::CrateLocator::extract_lib::h65180c494ff1506f
  18:        0x11b4a9723 - rustc_metadata::locator::CrateLocator::find_library_crate::hfc477ffefb8bb9f6
  19:        0x11b4a8f35 - rustc_metadata::locator::CrateLocator::maybe_load_library_crate::h72cf8d2ba396a6ef
  20:        0x11b4a56fc - rustc_metadata::creader::CrateLoader::load::h964f14bc88033ac9
  21:        0x11b4a2ee3 - rustc_metadata::creader::CrateLoader::maybe_resolve_crate::h1119379d42ec2199
  22:        0x11b4a489c - rustc_metadata::creader::CrateLoader::maybe_resolve_crate::h1119379d42ec2199
  23:        0x11b4a80b5 - rustc_metadata::creader::CrateLoader::maybe_process_path_extern::hc9b0cc5b2fa8688a
  24:        0x11aa0bd2b - rustc_resolve::Resolver::extern_prelude_get::h8e656f04f647feb1
  25:        0x11aa9ced8 - rustc_resolve::Resolver::visit_scopes::hcf9b9caddd8ddce5
  26:        0x11a9f75f1 - rustc_resolve::macros::&lt;impl rustc_resolve::Resolver&gt;::early_resolve_ident_in_lexical_scope::h2c9961f0e1abe22d
  27:        0x11aa09264 - rustc_resolve::Resolver::resolve_path_with_ribs::{{closure}}::hf7570ad6dc6538b7
  28:        0x11aa07936 - rustc_resolve::Resolver::resolve_path_with_ribs::haf35e44f4f415595
  29:        0x11aa3bb93 - rustc_resolve::imports::ImportResolver::resolve_imports::h53ff7ef17c6eb20b
  30:        0x11a9f4575 - rustc_resolve::macros::&lt;impl rustc_expand::base::ResolverExpand for rustc_resolve::Resolver&gt;::resolve_imports::h529bbc1feff023a7
  31:        0x11b5b3b2a - rustc_expand::expand::MacroExpander::fully_expand_fragment::h5c4d0c08e69f247d
  32:        0x11b5b31d7 - rustc_expand::expand::MacroExpander::expand_crate::h292d8ad144df4e4a
  33:        0x115c2c911 - rustc_interface::passes::configure_and_expand::{{closure}}::hbad6c082d8c5d4aa
  34:        0x115c2bd06 - rustc_interface::passes::configure_and_expand::heefd90d0d9bd8a11
  35:        0x115c8a0e0 - rustc_interface::queries::Query&lt;T&gt;::compute::haf20861da3d69d30
  36:        0x115c37f5c - rustc_interface::queries::Queries::expansion::he279e28ded63537b
  37:        0x11591870e - rustc_interface::queries::&lt;impl rustc_interface::interface::Compiler&gt;::enter::h1baa7929c6cddd37
  38:        0x115a2a108 - rustc_span::with_source_map::h33d9f36691856c24
  39:        0x11590b155 - scoped_tls::ScopedKey&lt;T&gt;::set::h9d71e89a014f949d
  40:        0x115a39fff - std::sys_common::backtrace::__rust_begin_short_backtrace::ha9f939f41a7a0c05
  41:        0x115925e2c - core::ops::function::FnOnce::call_once{{vtable.shim}}::h86f12f1eb12a4328
  42:        0x10fb5ca0b - &lt;alloc::boxed::Box&lt;F&gt; as core::ops::function::FnOnce&lt;A&gt;&gt;::call_once::hefab0d145698036d
  43:        0x10fba7d9a - std::sys::unix::thread::Thread::new::thread_start::h116849e28bc8893d
  44:     0x7fff68ab5109 - __pthread_start
</code></pre></div>



<a name="207786600"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786600" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786600">(Aug 23 2020 at 19:02)</a>:</h4>
<p>Backtrace 2:</p>
<div class="codehilite"><pre><span></span><code>error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&amp;template=ice.md

note: rustc 1.47.0-dev running on x86_64-apple-darwin

note: compiler flags: -Z macro-backtrace -Z osx-rpath-install-name -Z unstable-options -Z binary-dep-depinfo -Z force-unstable-if-unmarked -C opt-level=3 -C embed-bitcode=no -C codegen-units=4 -C debuginfo=0 -C link-args=-Wl,-rpath,@loader_path/../lib -C prefer-dynamic -C llvm-args=-import-instr-limit=10 --crate-type lib

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not compile `chalk-engine`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
   6:        0x1184f11d8 - rustc_driver::report_ice::h88a83a06b2619061
   7:        0x109d4423f - std::panicking::rust_panic_with_hook::he86b9c4b0afa00f3
   8:        0x109d5f96b - std::panicking::begin_panic_handler::{{closure}}::h29a4cbc939d3fbd6
   9:        0x109d5e8a8 - std::sys_common::backtrace::__rust_end_short_backtrace::h0873e5b8d114902b
  10:        0x109d43e73 - _rust_begin_unwind
  11:        0x109dd8a3f - core::panicking::panic_fmt::h6b07cf186aa0be5e
  12:        0x109dd8a06 - core::panicking::panic_bounds_check::he4e6b532cf9a6d7d
  13:        0x11debe445 - rustc_session::config::_DERIVE_rustc_serialize_Decodable_D_FOR_SymbolManglingVersion::&lt;impl rustc_serialize::serialize::Decodable&lt;__D&gt; for rustc_session::config::SymbolManglingVersion&gt;::decode::h370fa8bfe9d9a1f4
  14:        0x11dea0c30 - rustc_metadata::rmeta::_DERIVE_rustc_serialize_Decodable_DecodeContext_a_tcx_FOR_CrateRoot::&lt;impl rustc_serialize::serialize::Decodable&lt;rustc_metadata::rmeta::decoder::DecodeContext&gt; for rustc_metadata::rmeta::CrateRoot&gt;::decode::h7500125777da5e2d
  15:        0x11dfe51ad - rustc_metadata::rmeta::decoder::MetadataBlob::get_root::h9468e91298d49d80
  16:        0x11df4c9eb - rustc_metadata::locator::CrateLocator::extract_one::h63f2539ec27a38c0
  17:        0x11df4bd90 - rustc_metadata::locator::CrateLocator::extract_lib::h65180c494ff1506f
  18:        0x11df4b723 - rustc_metadata::locator::CrateLocator::find_library_crate::hfc477ffefb8bb9f6
  19:        0x11df4af35 - rustc_metadata::locator::CrateLocator::maybe_load_library_crate::h72cf8d2ba396a6ef
  20:        0x11df476fc - rustc_metadata::creader::CrateLoader::load::h964f14bc88033ac9
  21:        0x11df44ee3 - rustc_metadata::creader::CrateLoader::maybe_resolve_crate::h1119379d42ec2199
  22:        0x11df4689c - rustc_metadata::creader::CrateLoader::maybe_resolve_crate::h1119379d42ec2199
  23:        0x11df49eb2 - rustc_metadata::creader::CrateLoader::process_extern_crate::h63254ae023715d1e
  24:        0x11d48995d - &lt;rustc_resolve::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast::visit::Visitor&gt;::visit_item::heba5c11532cb4377
  25:        0x11d4d939f - rustc_ast::visit::walk_item::h7e86378542d3501a
  26:        0x11d48ab2a - &lt;rustc_resolve::build_reduced_graph::BuildReducedGraphVisitor as rustc_ast::visit::Visitor&gt;::visit_item::heba5c11532cb4377
  27:        0x11d495b7c - rustc_resolve::macros::&lt;impl rustc_expand::base::ResolverExpand for rustc_resolve::Resolver&gt;::visit_ast_fragment_with_placeholders::h39a6003b726de152
  28:        0x11e05c68d - rustc_expand::expand::MacroExpander::collect_invocations::hb11ba70c1006b7ca
  29:        0x11e055ace - rustc_expand::expand::MacroExpander::fully_expand_fragment::h5c4d0c08e69f247d
  30:        0x11e0551d7 - rustc_expand::expand::MacroExpander::expand_crate::h292d8ad144df4e4a
  31:        0x1186ce911 - rustc_interface::passes::configure_and_expand::{{closure}}::hbad6c082d8c5d4aa
  32:        0x1186cdd06 - rustc_interface::passes::configure_and_expand::heefd90d0d9bd8a11
  33:        0x11872c0e0 - rustc_interface::queries::Query&lt;T&gt;::compute::haf20861da3d69d30
  34:        0x1186d9f5c - rustc_interface::queries::Queries::expansion::he279e28ded63537b
  35:        0x1183ba70e - rustc_interface::queries::&lt;impl rustc_interface::interface::Compiler&gt;::enter::h1baa7929c6cddd37
  36:        0x1184cc108 - rustc_span::with_source_map::h33d9f36691856c24
  37:        0x1183ad155 - scoped_tls::ScopedKey&lt;T&gt;::set::h9d71e89a014f949d
  38:        0x1184dbfff - std::sys_common::backtrace::__rust_begin_short_backtrace::ha9f939f41a7a0c05
  39:        0x1183c7e2c - core::ops::function::FnOnce::call_once{{vtable.shim}}::h86f12f1eb12a4328
  40:        0x109d28a0b - &lt;alloc::boxed::Box&lt;F&gt; as core::ops::function::FnOnce&lt;A&gt;&gt;::call_once::hefab0d145698036d
  41:        0x109d73d9a - std::sys::unix::thread::Thread::new::thread_start::h116849e28bc8893d
  42:     0x7fff68ab5109 - __pthread_start
</code></pre></div>



<a name="207786605"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786605" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786605">(Aug 23 2020 at 19:02)</a>:</h4>
<p>there's no main function in that backtrace</p>



<a name="207786612"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786612" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786612">(Aug 23 2020 at 19:02)</a>:</h4>
<p>do you perchance have <code>parallel-compiler = true</code>?</p>



<a name="207786632"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786632" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786632">(Aug 23 2020 at 19:03)</a>:</h4>
<p>this sounds like the parallel compiler might not play well with the awful cloning hack rustdoc does with the resolver</p>



<a name="207786633"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786633" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786633">(Aug 23 2020 at 19:03)</a>:</h4>
<p>I have:</p>
<div class="codehilite"><pre><span></span><code><span class="c1">#parallel-compiler = false</span>
</code></pre></div>



<a name="207786639"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786639" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786639">(Aug 23 2020 at 19:03)</a>:</h4>
<p>So I assume it's the default</p>



<a name="207786642"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786642" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786642">(Aug 23 2020 at 19:03)</a>:</h4>
<p>this is really weird then, why is rustc starting threads?</p>



<a name="207786686"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786686" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786686">(Aug 23 2020 at 19:04)</a>:</h4>
<p>anyway this is out of my knowledge of the compiler, I'd open an issue</p>



<a name="207786710"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786710" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786710">(Aug 23 2020 at 19:05)</a>:</h4>
<p>I just remembered that I have <code>incremental = true</code>. Do you think that could be causing weird issues?</p>



<a name="207786764"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786764" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786764">(Aug 23 2020 at 19:06)</a>:</h4>
<p>nah I use incremental = true locally</p>



<a name="207786773"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786773" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786773">(Aug 23 2020 at 19:06)</a>:</h4>
<p>I don't have chalk enabled though, let me see if I can replicate that way</p>



<a name="207786781"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786781" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786781">(Aug 23 2020 at 19:06)</a>:</h4>
<p>I don't think I ever enabled chalk though...</p>



<a name="207786795"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786795" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786795">(Aug 23 2020 at 19:07)</a>:</h4>
<p>Maybe I should update my <code>config.toml</code></p>



<a name="207786797"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786797" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786797">(Aug 23 2020 at 19:07)</a>:</h4>
<p>try that, yeah</p>



<a name="207786807"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207786807" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207786807">(Aug 23 2020 at 19:07)</a>:</h4>
<p>I think it's 2 months out of date</p>



<a name="207791589"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207791589" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207791589">(Aug 23 2020 at 21:11)</a>:</h4>
<p>Still got it with <code>incremental = false</code> and with <code>config.toml.example</code>. Filed an issue: <a href="https://github.com/rust-lang/rust/issues/75849">#75849</a></p>



<a name="207793392"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ICE%20when%20compiling/near/207793392" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ICE.20when.20compiling.html#207793392">(Aug 23 2020 at 22:03)</a>:</h4>
<p><span class="user-mention" data-user-id="307537">@Camelid</span> if you run <code>build --stage 1</code> what happens?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>